<c:set var='view' value='/userAdministration' scope='session' />
<div id="main">
    <!-- BEGIN SLIDESHOW -->
    
    <!-- END SLIDESHOW -->

    <!-- BEGIN CONTEINER -->
    <div id="contentc">
        <div id="title">
      <div class="left"><fmt:message key='infouser'/></div>
      <div class="sp"></div>
    </div>
        <form name="frm_registrar" id="frm_registrar" action="<c:url value='/changer'/>" method="post">
	<table cellpadding="7">
	    <tbody align="left">
		<tr>
		    <td><label for="inputtext1"><fmt:message key='nom'/>:</label></td>
                    <td><input id="inputtext1" type="text" name="nom" value="${nomc}" /></td>
		</tr>
                <tr>
		    <td><label for="inputtext1"><fmt:message key='prenom'/>:</label></td>
		    <td><input id="inputtext1" type="text" name="prenom" value="${prenomc}" /></td>
		</tr>
                <tr>
		    <td><label for="inputtext1"><fmt:message key='user'/>:</label></td>
		    <td><label for="inputtext1">${clientloged}</label></td>
		</tr>
		<tr>
		    <td><label for="inputtext1"><fmt:message key='pass'/>:</label></td>
		    <td><input id="inputtext1" type="password" name="pass" value="" /></td>
		</tr>
		<tr>
		    <td><label for="inputtext1"><fmt:message key='mail'/>:</label></td>
		    <td><input id="inputtext1" type="text" name="mail" value="${clientData.email}" /></td>
		</tr>
		<tr>
		    <td><label for="inputtext1"><fmt:message key='city'/>:</label></td>
		    <td><input id="inputtext1" type="text" name="city" value="${cityc}" /></td>
		</tr>
		<tr>
		    <td><label for="inputtext1"><fmt:message key='address'/>:</label></td>
		    <td><input id="inputtext1" type="text" name="address" value="${adressec}" /></td>
		</tr>
		<tr>
		    <td><label for="inputtext1"><fmt:message key='phone'/>:</label></td>
		    <td><input id="inputtext1" type="text" name="phone" value="${clientData.telephone}" /></td>
		</tr>
                <tr>
		    <td><label for="inputtext1"><fmt:message key='datenaissance'/>:</label></td>
                    
                    <td><select name="jour">
                               <c:forEach var="i" begin="1" end="31">
                                   <option value="${i}"
                                   <c:if test="${i eq dayc}">
                                        selected
                                   </c:if>
                               >${i}</option>
                            </c:forEach>
                        </select>
                        
                        <select name="mois">
                               <c:forEach var="i" begin="1" end="12">
                               <option value="${i}"
                                       <c:if test="${i eq monthc}">
                                        selected
                                   </c:if>
                                       >${i}</option>
                            </c:forEach>
                        </select>
                        <select name="annee">
                               <c:forEach var="i" begin="1930" end="1995">
                               <option value="${i}"
                                       <c:if test="${i eq yearc}">
                                        selected
                                   </c:if>
                                       >${i}</option>
                            </c:forEach>
                        </select>
                    </td>
		</tr>
                <tr>
		    <td><label for="inputtext1"><fmt:message key='url'/>:</label></td>
		    <td><input id="inputtext1" type="text" name="url" value="${clientData.url}" /></td>
		</tr>
                <tr>
		    <td><label for="inputtext1"><fmt:message key='addresscomp'/>:</label></td>
		    <td><textarea rows="5" name="addresscomp" value="${clientData.adresseComp}">${clientData.adresseComp}</textarea></td>
		</tr>
                <tr>
		    <td><label for="inputtext1"><fmt:message key='pays'/>:</label></td>
		    <td><select name="pays">
                            <c:forEach var="pay" items="${pays}">
                               <option value="${pay.idpaysClient}"
                                   <c:if test="${pay.idpaysClient eq clientData.idPays.idpaysClient}">
                                        selected
                                   </c:if>
                                       >${pay.description}</option>
                            </c:forEach>
                        </select></td>
		</tr>
                <tr>
		    <td><label for="inputtext1"><fmt:message key='langue'/>:</label></td>
		    <td><select name="langue">
                            <c:forEach var="langue" items="${langues}">
                               <option value="${langue.idlangue}"
                                   <c:if test="${langue.idlangue eq clientData.idLangue.idlangue}">
                                        selected
                                   </c:if>
                                       >${langue.nom}</option>
                            </c:forEach>
                        </select></td>
		</tr>
      
	    </tbody>
	</table>
	<br/>
	<input id="inputsubmit1" type="submit" name="inputsubmit1" value="<fmt:message key='change'/>" />
        <input type="button" value="<fmt:message key='cancel'/>" onclick="location.href='<c:url value='/'/>'">
    </form>
    </div>
    <!-- END CONTENT -->
    <div class="sp"></div>
  </div>
  <div class="sp"></div>
</div>